package com.project.srtp.common.biz;

/**
 * @author 曹行阳
 * @version 0.1
 * @date 2025/3/26 9:18
 */

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.alibaba.fastjson2.annotation.JSONField;

import java.util.List;

/**
 * 用户上下文对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserContext {
    @JSONField(name = "id")
    private Long userId;
    private String username;
    private List<String> roles;
}
